from fastapi import APIRouter, Depends, File, UploadFile
from fastapi.responses import FileResponse
from conf.settings import base_dir

router = APIRouter()


@router.get("/image/{file_name}")
async def get_image(file_name: str):
    image_path = f"{base_dir}/assets/" + file_name
    return FileResponse(image_path)
